-- GENERATED SPELL FOR [Cabal Initiate] --


function spell0_21907(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_21907', 665, 1)
end

function spell1_21907(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(15691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21907', 628, 1)
end

function Sorts_21907(pUnit, Event)
local choix_sorts_21907 = math.random(0, 1)
if choix_sorts_21907 == 0 then
pUnit:RegisterEvent('spell0_21907', 1, 1)
end
if choix_sorts_21907 == 1 then
pUnit:RegisterEvent('spell1_21907', 1, 1)
end
end

function mob21907_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21907', math.random(1500, 3000), 1)
end

function mob21907_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21907_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21907_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21907, 1, 'mob21907_Action')
RegisterUnitEvent(21907, 2, 'mob21907_Leave')
RegisterUnitEvent(21907, 3, 'mob21907_Kill')
RegisterUnitEvent(21907, 4, 'mob21907_Die')
